package com.npjscg.medicalpro.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.npjscg.medicalpro.entity.Dep;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author raote
 * @since 2022-06-25
 */
public interface IDepService extends IService<Dep> {

    List<Dep> getDepByfather(int f_id);

    void deleteDep(int id);

    Dep newDep(Dep dep);

    Dep updatename(String newname, String newdepcode, int id);

    IPage selectPage(Page<Dep> page, String depname);

    Dep getByCode(String depcode);
}
